package com.qyer.lxp.model.price.parameter;

import com.qyer.lxp.common.framework.adapter.DateAdapter;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.io.Serializable;
import java.util.Date;

/**
 * 获取销售项目某一天的价格信息接口参数类
 * Created by jiangping on 16/5/18.
 */
@XmlRootElement(name = "price-query-request")
@XmlAccessorType(XmlAccessType.FIELD)
public class PriceQueryRequest implements Serializable{
    private static final long serialVersionUID = 7714831929658746106L;

    /**
     * 销售项目编码
     */
    @XmlElement(name = "sale-code")
    private String saleCode;

    /**
     * 旅行日期
     */
    @XmlJavaTypeAdapter(value = DateAdapter.class)
    @XmlElement(name = "travel-date")
    private Date travelDate;

    /**
     * 币种
     */
    private String currency;

    public String getSaleCode() {
        return saleCode;
    }

    public void setSaleCode(String saleCode) {
        this.saleCode = saleCode;
    }

    public Date getTravelDate() {
        return travelDate;
    }

    public void setTravelDate(Date travelDate) {
        this.travelDate = travelDate;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    @Override
    public String toString() {
        return "PriceQueryRequest{" +
                "saleCode='" + saleCode + '\'' +
                ", travelDate=" + travelDate +
                ", currency='" + currency + '\'' +
                '}';
    }
}
